<!--
@UIA-WIN-DENY:*
@UIA-WIN-ALLOW:AriaProperties*
-->
<!DOCTYPE html>
<html>
<body>
  <div id="d1" aria-label="Div1">Div1</div>
  <div id="d2" aria-label="Div2" aria-live="polite">Div2</div>
  <div id="d3" aria-label="Div3" aria-live="polite">Div3</div>
  <div id="d4" aria-label="Div4" aria-live="polite">Div4</div>
  <div id="d5" aria-label="Div5" aria-live="polite">Div5</div>
  <div id="d6" aria-label="Div6" aria-live="polite">Div6</div>
  <div id="d7" aria-label="Div7" aria-live="polite" aria-relevant="true">Div7</div>
  <div id="d8" aria-label="Div8" aria-live="polite" aria-relevant="true">Div8</div>
  <script>
    function go() {
      // Set aria-relevant from default 'additions text'->'all' on a non-live region;
      // should not fire an event.
      document.getElementById('d1').setAttribute('aria-relevant', 'all');

      // Set aria-relevant from default 'additions text'->'additions text';
      // should not fire an event.
      document.getElementById('d2').setAttribute('aria-relevant', 'additions text');

      // Set aria-relevant from default 'additions text'->'additions';
      // should fire an event.
      document.getElementById('d3').setAttribute('aria-relevant', 'additions');

      // Set aria-relevant from default 'additions text'->'all';
      // should fire an event.
      document.getElementById('d4').setAttribute('aria-relevant', 'all');

      // Set aria-relevant from default 'additions text'->'removals';
      // should fire an event.
      document.getElementById('d5').setAttribute('aria-relevant', 'removals');

      // Set aria-relevant from default 'additions text'->'text';
      // should fire an event.
      document.getElementById('d6').setAttribute('aria-relevant', 'text');

      // Set aria-relevant from 'additions'->'additions text';
      // should fire an event.
      document.getElementById('d7').setAttribute('aria-relevant', 'additions text');

      // Set aria-relevant from 'additions'->[removed];
      // should fire an event.
      document.getElementById('d8').removeAttribute('aria-relevant');
    }
  </script>
</body>
</html>
